<!DOCTYPE html>
<body onload="document.getElementById('a').style.borderTopWidth=0;document.getElementById('rand').style.height='1px';">
<div style="float:left; width:0; height:60px"></div>
<div style="background: red; float: right; height: 50px; width: 20px; clear:left"></div>
<div id="a" style="border-top: solid 50px;">
  <div id="b" style="border: solid orange; float: left; clear: right; width: 100px; height: 100px; position: relative;"></div>
</div>
<div>
asdf<br>
asdf<br>
asdf<br>
asdf<br>
asdf<br>
asdf<br>
asdf<br>
asdf<br>
<div id=rand></div>
</div>
